{% extends "base.html" %}

{% block nav %}
<li class="active">
    <i class="fa fa-user"></i> 短信日志
</li>
{% endblock %}

{% block content %}
	<div class="col-lg-12">
		<table class="table table-striped">
		  <thead>
			<tr>
			<th>id</th>
			<th>手机号</th>
			<th>内容</th>
			<th>发送状态</th>
			</tr>
		  <thead>
		  <tbody>
		  {% if result %}

		  	{% if result['data'] %}
		  		{% if result['data'] %}
		  			{% for id,phone,content,status in result['data'] %}
					<tr>
					  <td >{{ id }}</td>
					  <td >{{ phone }}</td>
					  <td >{{ content }}</td>
					  {% if status %}
					  	<td>发送成功</td>
					  {% else %}
					  	<td>发送失败</td>
					  {% endif %}
					</tr>
				  </tbody>
				  {% endfor %}
				{% endif %}
		  	{% endif %}
		  	<!-- code不等于0-->
		  {% endif %}
		</table>
	</div>
{% endblock %}

id,phone,username,class_type,class_num,status